<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>重庆大学硕士研究生服务系统</title>
<?php $this->load->view('includes/ga_head'); ?>  
</head>
<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> 
<body class=""> 
<!--<![endif]-->
<?php $this->load->view('includes/ga_navbar'); ?>  
<?php $this->load->view('includes/ga_sidebar'); ?>  
<div class="content">
    <div class="header">
        <h1 class="page-title">申请信息综合查询</h1>
    </div>
    <ul class="breadcrumb">
        <li><a href="index.html">Home</a> <span class="divider">/</span></li>
        <li class="active">学生申请信息列表</li>
    </ul>

    <div class="container-fluid">
        <div class="row-fluid">
<?php $this->load->view('includes/ga_message'); ?>  
<?php echo form_open(current_url());	?>
<div class="row-fluid">
  <div class="span12">
   关键字：
   <input type="text" class="span2 search-query" name="search_key_words" placeholder="关键字" value="<?php echo $search_key_words;?>">
   审核状态：
   <select name="select_news_status" class="span2 search-query" id ="select_news_status_id">
   	  	<option value="all">所有</option>
 		  	<?php foreach ($stuApplyStatus as $sas) { ?>
		  	<option value = <?php echo $sas[0]; ?> <?php echo ($sas[0]==$select_news_status)?'selected':''; ?> ><?php echo $sas[1]; ?></option>
		  	<?php } ?>
   </select>
   报考学院：
   <select name="select_college" class="span2 search-query" id ="select_college_id">
   	  	<option value="all">所有</option>
 		  	<?php foreach ($colleges_list as $cl) { ?>
		  	<option value = <?php echo $cl['college_id']; ?> <?php echo ($cl['college_id']==$select_college)?'selected':''; ?> ><?php echo $cl['college_name']; ?></option>
		  	<?php } ?>
   </select>
   报考类型：	
   <select name="select_news_type" class="span1 search-query" id ="select_news_type_id">
   	  	<option value="all">所有</option>
 		  	<?php foreach ($stuApplyType as $sat) { ?>
		  	<option value = <?php echo $sat[0]; ?> <?php echo ($sat[0]==$select_news_type)?'selected':''; ?> ><?php echo $sat[1]; ?></option>
		  	<?php } ?>
   </select>
   <input type="submit" name="search_user" class="btn" value="搜索" />
   <a class="btn" href="<?php echo $base_url; ?>gass_apply/manage_apply" style="margin-left:20px;">重设</a>
</div>
</div>


<?php echo form_close();?>	
<div class="well">
<?php $attributes = array('id' => 'apply_list_form');echo form_open(current_url(), $attributes);?>  	
            <table class="table table-striped table-hover">
                <thead>
                    <tr>
        <th>报名序号</th>
		<th>审核状态</th>
		<th>姓名</th>
		<th>性别</th>
		<th>名族</th>
		<th>报考类型</th>
		<th>推免资格</th>
		<th>毕业学校</th>	
		<th>毕业专业</th>	
		<th>报考学院</th>
		<th>报考专业</th>
		<th>报考导师</th>
		<th>4/6级成绩</th>
                    </tr>
                </thead>
                <?php if (!empty($applyListInfo)) { ?>
                <tbody>
		<?php foreach ($applyListInfo as $ali) { ?>
                    <tr>
                        <td><a href="<?php echo $base_url;?>gass_apply/apply_details/<?php echo $ali['apply_id'];?>"><?php echo $ali['apply_series'];?></a>
                        </td>
                        <td><?php foreach ($stuApplyStatus as $sas){
									if ($sas[0] == $ali['apply_status']){
									   echo $sas[1];
									}            
								}
			    ?>
                        </td>
                        <td><?php echo $ali['stu_real_name'];?>
                        </td>
                        <td><?php foreach ($stuGender as $sgd){
									if ($sgd[0] == $ali['stu_gender']){
									   echo $sgd[1];
									}
									            
								}
			    ?>
                        </td>
                        <td><?php foreach ($stuNation as $snt){
									if ($snt[0] == $ali['stu_nation']){
									   echo $snt[1];
									}
									            
								}
			    ?>
                        </td>
                        <td><?php foreach ($stuApplyType as $sat){
									if ($sat[0] == $ali['apply_type']){
									   echo $sat[1];
									}
									            
								}
			    ?>
                        </td>
<td><?php foreach ($stuApplyRom as $sar){
									if ($sar[0] == $ali['recom_qualify']){
									   echo $sar[1];
									}
									            
								}
			    ?>
			</td>		
			<td><?php echo $ali['bydwmc'];?></td>
			<td><?php echo $ali['ungra_major'];?></td>
				
			<td><?php echo $ali['college_name'];?></td>
			<td><?php echo $ali['major_name'];?></td>
			<td><?php echo $ali['tutor_name'];?></td>
			<td><?php echo $ali['stu_cet4_score'].'/'.$ali['stu_cet6_score'];?></td>
		
                    </tr>
                <?php } ?>
                </tbody>	<TFOOT>
      <TR>
         <TD colSpan=13><?php if (! empty($pagination['links'])) { ?>
               总数: 共 <?php echo $pagination['total_public_apply'];?> 条查询结果
               链接: <?php echo $pagination['links'];?>
               <?php } ?>
         </TD> 
      </TR>
    </TFOOT>
            <?php } else { ?>
                <tbody>
                    <tr>
                        <td colspan=13>
                            没有任何提交审批的公告
                        </td>
                    </tr>
                </tbody>
            <?php } ?>
            </table>
            <?php echo form_close();?>
                
</div>
<?php $this->load->view('includes/ga_footer'); ?>  
        </div>
    </div>
</div>
<?php $this->load->view('includes/ga_scripts'); ?>
<script>
/**
 * 对下拉菜单进行处理
 *
 * 不允许任何人选择状态一：尚未提交申请
 * 不允许专业学院老师选择状态二：研招办审核中
 */
$(document).ready(function(){
	jsRemoveItemFromSelect($("select")[0],1);
  <?php if($this->flexi_auth->get_user_group_id()==2){?>
  jsRemoveItemFromSelect($("select")[0],2);	
  jsRemoveItemFromSelect($("select")[0],5);	
  <?php }?>
});

</script>  
  
</body>
</html>
